package top.kangyaocoding.ecommerce.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import top.kangyaocoding.ecommerce.po.RepeatBuyCycle;

import java.util.List;

/**
 * 描述:
 *
 * @author K·Herbert
 * @since 2025-02-16 下午3:57
 */
@Mapper
public interface IRepeatBuyCycleDao {
    @Select("SELECT * FROM repeat_buy_cycle")
    @Results({
            @Result(property = "repeatBuyCycle", column = "repeat_buy_cycle") // 映射数据库字段与PO属性
    })
    List<RepeatBuyCycle> findAll();
}
